#ifndef GRAPHICS_H
#define GRAPHICS_H

#include <cmath>
#include <string>
#include <SDL/SDL.h>
#include <SDL/SDL_ttf.h>
#include <SDL/SDL_opengl.h>
#include "WZLib/WZLib.h"

#pragma comment(lib, "SDL_ttf.lib")

extern SDL_Surface* screen;

class sprite {//I'll be creating this eventually...
public:
	sprite();
	WZLib::WZPNGProperty* data;
	SDL_Surface* texture;
	GLuint gltexture;
	int width, height;
	double twidth, theight;
	int originx, originy;
	bool loaded,noded;
	SDL_Surface* get();
	GLuint glget();
	void node(void* thenode);
	void operator =(WZLib::WZPNGProperty* png);
};

class view_class{
public:
	double x,y,tx,ty;
	view_class();
};
extern view_class view;
void init_graphics();
void draw_sprite(sprite* spr, double x, double y, bool relative = true);
void draw_text(std::string &str, double x, double y);

#include "OpenGL.h"
#endif